package net.bxx2004.zephyr.network;

import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ActionResult;

public abstract class MessageListener {
    public void register(){
        MessageEvent.EVENT.register((player, box) -> {
            receive(player,box);
            return ActionResult.PASS;
        });
    }
    public abstract void receive(PlayerEntity player, MessageBox box);
}
